<template>
  <view>
    <button ref="hello" id="10">这里是组件</button>
  </view>
</template>

<script setup lang="ts">
  import { onMounted, ref } from 'vue';
  const hello = ref(null)
  onMounted(()=>{
    console.log('hello.value:', hello.value);
    console.log('hello.value.id:', hello.value.id);
    console.log('hello.value.innerHTML:', hello.value.innerHTML);
  })
</script>

<style lang="css" scoped></style>